package utils;

public class Title {
    private String text;
    private int level;
    private Title parent;
    private int position; // 在父标题中的位置,1代表非最后，2代表最后

    public Title(String text, int level, Title parent, int position) {
        this.text = text;
        this.level = level;
        this.parent = parent;
        this.position = position;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public Title getParent() {
        return parent;
    }

    public void setParent(Title parent) {
        this.parent = parent;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }
}
